package HomeWork.HomeWork11.Phone;

/***/
public class TestPhone {
    public static void main(String[] args) {
        doTest1(new oldPhone());
        doTest1(new newPhone());
        doTest2(new newPhone());
    }

    public static void doTest1(Phone phone){
        phone.call();
        phone.sendMessage();
    }
    public static void doTest2(IPlay iPlay){
        iPlay.playGame();
    }
}
